package com.demonlover.oauth2.sever.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.demonlover.oauth2.sever.domain.PermissionExample;
import java.util.List;
import com.demonlover.oauth2.sever.domain.Permission;
import com.demonlover.oauth2.sever.mapper.PermissionMapper;
import com.demonlover.oauth2.sever.service.PermissionService;
/**
 * @author  WuChao
 * @date  2020/6/3 10:50
 * @version 1.0
 */
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService{

    @Override
    public long countByExample(PermissionExample example) {
        return baseMapper.countByExample(example);
    }
    @Override
    public int deleteByExample(PermissionExample example) {
        return baseMapper.deleteByExample(example);
    }
    @Override
    public List<Permission> selectByExample(PermissionExample example) {
        return baseMapper.selectByExample(example);
    }
    @Override
    public int updateByExampleSelective(Permission record,PermissionExample example) {
        return baseMapper.updateByExampleSelective(record,example);
    }
    @Override
    public int updateByExample(Permission record,PermissionExample example) {
        return baseMapper.updateByExample(record,example);
    }

    @Override
    public List<Permission> selectByUserId(Long id) {

        return baseMapper.selectByUserId(id);
    }
}
